package homeworkplus.day01;

import java.util.Scanner;

/**
 * @Classname: Test04
 * @Author: bromide
 * @CreateTime: 2022/3/29--19:51
 * @Version: V1.0
 * @Desciption: 要求用户从控制台输入一个email地址，然后获取该email的用户名(@之前的内容)
 */
public class Test04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String email = scanner.nextLine();
        int a = email.indexOf("@");
        String s = email.substring(0, a);
        System.out.println(s);
    }
}
